<?php
//echo 2222;exit;
// please enable the line below if you are having memory problems
//ini_set('memory_limit', "16M");
$base = dirname(__FILE__);
require($base.'/../assembly.php');

$configFile = $base.'/../config/config.php';
include_once($configFile);
//var_dump(get_include_path());
set_include_path($configs['includePath'].':'.$base.'/../templates');

$envSystemCode = 'wwwfront';

BeanFinder::register('configs', new Configuration($configFile));

//$debugerName = isset($_COOKIE['debug']) ? $_COOKIE['debug'] : '';
//BeanFinder::register('debug', new Debugger($debugerName));

// just to make php use &amp; as the separator when adding the PHPSESSID
// variable to our requests
ini_set("arg_seperator.output", "&amp;");
ini_set("magic_quotes_runtime", 0 );

include_once(dirname(__FILE__).'/../mywebapp.php');
$application = new MyWebApplication($base.'/..');
$application->run();
